<template>
  <div class="demo">
    <h2 @click="showName">学校名称:  {{name}}</h2>
    <h2 @click="num++">学校地址:  {{address}}</h2>
    {{num}}
  </div>
</template>

<script>
    import {hunhe,hunhe2 } from "../mixin.js";
    export default {
    // eslint-disable-next-line vue/multi-word-component-names
        name: 'School',
        data() {
            return {
                name: '尚硅谷',
                address:'北京昌平',
                num:2,
                // x:null
            }
        },
        mixins:[hunhe,hunhe2]

    }
</script>

<style>
    .demo {
        background-color: pink;
    }
</style>